import 'package:flutter_rider/api/api.dart';
import 'package:fluttertoast/fluttertoast.dart';

class Tip {
  static show(String text, {ServerResponse? serverResponse}) {
    if (serverResponse != null && serverResponse.msg != null && serverResponse.msg.isNotEmpty) {
      text = serverResponse.msg;
    }
    Fluttertoast.showToast(msg: text);
  }
}